    // 带状态表格  类名
    const tableRowClassName = ({ row, rowIndex }) => {
      return "info-row";
      };
export const elProps={
    border:true,//边框
    stripe:false,//斑马纹
    operate:false,//是否显示操作菜单
    freeOperate:false,//是否显示  独立 表格操作菜单
    selection:false,//是否显示多选
    showOverflowTooltip:true,//单行显示
    rowClassName:tableRowClassName,
    indexType:false,//是否显示序列号
    buttonControl:false,//顶部操作按钮
    iconControl:true,//顶部操作按钮  图表模式
    class:'proTable',
    style:{
      // marginTop:'25px',
    },
    cellStyle:{
        textAlign:'center',
    },
      headerCellStyle:{
        textAlign:'center',
        // color:'red'
      },
}
export const controlWidth = {
  title: 180,
  content:180,
  username:180,
  create_time:180
}
import BaseInput from "@/components/ProForm/BaseInput.vue";
export const addeditConfig = {
    formProps: { // 表单属性
        labelPosition: 'left',
        labelWidth: 'auto',
        row:true,
    },
    formItems: [{
            name: BaseInput,
            props: { 
                label: '公告標題',
                prop: 'title',
                span:24,
            },
            elProps: { 
                placeholder: '',
                clearable:false,
                disabled:true
            },
            value: '' 
        },
        {
            name:BaseInput,
            props: {
                label: '公告內容',
                prop: 'content',
                span:24,
            },
            elProps: {
                placeholder: '',
                clearable: false,
                type:'textarea',
                disabled:true
            },
            value: ''
        },
        {
            name:BaseInput,
            props: {
                label: '創立者',
                prop: 'username',
                span:24,
            },
            elProps: {
                placeholder: '',
                clearable: false,
                disabled:true
            },
            value: ''
        },
        {
            name:BaseInput,
            props: {
                label: '發佈時間',
                prop: 'create_time',
                span:24,
            },
            elProps: {
                placeholder: '',
                clearable: false,
                disabled:true
            },
            value: ''
        },


    ],
    rules: {
        title:{required:true,message:'請輸入學生公告標題',trigger:['blur','change'] },
        content:{required:true,message:'請輸入學生公告內容',trigger:['blur','change'] },
        status:{required:true,message:'請輸入學生公告狀態',trigger:['blur','change'] },
    }
}